#ifndef ROCK_H
#define ROCK_H
#include "ScrollingObject.h"

class Rock : public ScrollingObject
{

public:
	Rock(sf::Vector2f startPos = sf::Vector2f(0, 0),
		float scale = 1.5f,
		float screenHeight = 720.0f,
		bool alongBottom = true,
		sf::Vector2f startVel = sf::Vector2f(0, 0),
		const char* fileName = "images/rockImage.png"
		)
													: ScrollingObject(startPos, startVel, fileName, scale)
	{
		float sizeOffset = mySprite.getTexture()->getSize().y * scale * 0.5f;
		if (alongBottom)
			pos = sf::Vector2f(pos.x, screenHeight - 0.5f * sizeOffset);
		else
		{ 
			pos = sf::Vector2f(pos.x, 0.5f * sizeOffset);
			mySprite.setRotation(180.0f);
		}
			
	};
	~Rock(){};
};

#endif // ROCK_H